package com.tuanzi.loan.web.lazy.jiafang;

import org.springframework.data.domain.Page;

import com.tuanzi.loan.business.service.family.LoanApiRecordService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.jiafang.NuanXinDaiUnionSearchRequest;
import com.tuanzi.loan.vo.response.jiafang.NuanXinDaiUnionSearchResponse;

public class NuanXinDaiUnionLazyDataModel extends BaseLazyDataModel<NuanXinDaiUnionSearchRequest, NuanXinDaiUnionSearchResponse> {

	private static final long serialVersionUID = 3349228989151930256L;
	
	private LoanApiRecordService loanApiRecordService = SpringContextHolder.getBean(LoanApiRecordService.class);
	

	public NuanXinDaiUnionLazyDataModel(NuanXinDaiUnionSearchRequest searchRequest) {
		super(searchRequest);
	}

	@Override
	protected Page<NuanXinDaiUnionSearchResponse> doLoad(
			PageSearcher<NuanXinDaiUnionSearchRequest> pageSearcher) {
		return loanApiRecordService.statNuanXinDaiUnion(pageSearcher);
	}

}
